package com.guxiaotu.mapper;

import com.guxiaotu.bean.Employee;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * 查询用户所有信息
 * @author Gu Yuanhua
 * created time 2018/8/3 15:25
 */
@Repository
public interface EmployeeMapper {

    /**
     * 根据学号id查询学生信息
     * @param id 学号
     * @return 学生
     */
    @Select("SELECT * FROM tbl_employee WHERE id = #{id}")
    Employee getStudent(@Param("id") String id);
}
